package com.xqit.ydzhkt.answer.service.impl;

import com.xqit.ydzhkt.answer.mapper.AddAnswerMapper;
import com.xqit.ydzhkt.answer.mapper.AddQuestionMapper;
import com.xqit.ydzhkt.answer.service.AddQuestionService;
import com.xqit.ydzhkt.entity.AnswerEntity;
import com.xqit.ydzhkt.entity.QuestionEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by Janus on 2020/6/9
 */
@Service
public class AddQuestionMapperImpl implements AddQuestionService {

    @Autowired
    private AddQuestionMapper addQuestionMapper;

@Autowired
private AddAnswerMapper addAnswerMapper;
    @Override
    public void addQuestion(int studentId,int teacherId,String questionTitle,String questionContent) {
        addQuestionMapper.addQuestion(studentId,teacherId,questionTitle,questionContent);

//        addAnswerMapper.addAnswer(answerEntity);

//        Integer i = questionEntity.getId();
//        System.out.println(i);

//  answerEntity.setQuestionId(i);



    }

//    @Override
//    public void addAnswer(AnswerEntity answerEntity) {
//        addAnswerMapper.addAnswer(answerEntity);
//    }


}

